package com.admin.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import com.admin.bean.MyUser;

@Repository
public class MyUserDao {
	@Autowired
    protected JdbcTemplate jdbcTemplate;
	public List<MyUser> list(){
		return jdbcTemplate.query("select * from www_user",  BeanPropertyRowMapper.newInstance(MyUser.class));
	}
}
